package com.platform.service;

import com.platform.dao.ApiAnnouncementMapper;
import com.platform.entity.AnnouncementVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ApiAnnouncementService {

    @Autowired
    private ApiAnnouncementMapper announcementDao;


    public AnnouncementVo queryObject(Integer id) {
        return announcementDao.queryObject(id);
    }

    public List<AnnouncementVo> queryList(Map<String, Object> map) {
        return announcementDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return announcementDao.queryTotal(map);
    }

    public int save(AnnouncementVo announcement) {
        return announcementDao.save(announcement);
    }

    public int update(AnnouncementVo announcement) {
        return announcementDao.update(announcement);
    }

    public int delete(Integer id) {
        return announcementDao.delete(id);
    }

    public int deleteBatch(Integer[] ids) {
        return announcementDao.deleteBatch(ids);
    }
}
